﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Wiki.History" %>
<%@ Import Namespace="BLF" %>
<%@ Import Namespace="BLF.WWW_WWW.Wiki" %>
<%@ Import Namespace="Model.WWW_WWW.Wiki" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><asp:Literal ID="lblTitle" runat="server" Text="-- Title --" /></h1>
							</div>
							<div class="submenuN_button"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/knowledge/edit.htm" class="Naddbtn btnspec" style="text-decoration:none"><%}else{ %><a href="#" onclick="NotAffirm()" class="Naddbtn btnspec" style="text-decoration:none"><%} %><span><%=GetText("WK004")%></span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Content">
						<div class="knowedge_area">
							<p>
							<h4><asp:Literal ID="lblCompare" runat="server" Text="Compare Page Revisions" /></h4></p>
							<asp:DropDownList ID="lstRev1" runat="server"/>
							<asp:DropDownList ID="lstRev2" runat="server"/>
							<asp:Button ID="btnCompare" runat="server" Text="Compare" CssClass="button" OnClick="btnCompare_Click" />&nbsp;
							<asp:Button ID="btnRollBack" runat="server" Text="RollBack" CssClass="button" OnClick="btnRollBack_Click" />&nbsp;
							<asp:Button ID="btnLock" runat="server" Text="Lock" CssClass="button" OnClick="btnLock_Click" />&nbsp;
							<asp:Button ID="btnUnLock" runat="server" Text="UnLock" CssClass="button" OnClick="btnUnLock_Click" />
							<br />
							<br />
							<%if (page != null)
							  { %>
							<asp:PlaceHolder ID="plhRevision" runat="server">
								<table cellpadding="5" cellspacing="0" width="100%">
									<tr id="RevisionListHeader">
										<td bgcolor="#eeeeee" width="3%"></td>
										<td bgcolor="#eeeeee" width="30%"><strong><%=Exchanger.ResourceExchanger.GetResource("Revision")%></strong></td>
										<td bgcolor="#eeeeee" width="47%"><strong><%=Exchanger.ResourceExchanger.GetResource("RevisionComment")%></strong></td>
										<td bgcolor="#eeeeee" width="20%"><strong><%=Exchanger.ResourceExchanger.GetResource("User")%></strong></td>
									</tr>
									<asp:Repeater ID="rpt1" runat="server">
										<ItemTemplate>
											<tr>
												<td width="3%" class="revisionlistcelleven">&nbsp;</td>
												<td width="30%" class="revisionlistcelleven"><a href='/knowledge/<%#(Eval("Type").ToString()=="0"?"wiki":"contribution") %>-<%#Tools.UrlEncode(Eval("Name").ToString()) %>.htm'><b><%#Exchanger.ResourceExchanger.GetResource("CurrentRevision")%> - <%#FormatDiffDate(GetText("C0036"), Model.CommonMethod.FormatDateAgo((DateTime)Eval("DateTime")))%></b></a></td>
												<td width="47%" class="revisionlistcelleven"><small><%#(Eval("Comment").ToString().Length > 0 ? Eval("Comment").ToString() : "&nbsp;")%></small></td>
												<td width="20%" class="revisionlistcelleven"><a href='/<%#Eval("Username")%>.htm'><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a></td>
											</tr>
										</ItemTemplate>
									</asp:Repeater>
									<asp:Repeater ID="rpt2" runat="server">
										<ItemTemplate>
											<tr>
												<td width="3%" class="revisionlistcelleven" align="center"><%#HttpUtility.HtmlEncode(Eval("Revision").ToString())%></td>
												<td width="30%" class="revisionlistcelleven"><a href='/knowledge/history.htm?Page=<%#Eval("Name")%>&amp;Revision=<%#Eval("Revision")%>'><b><%#FormatDiffDate(GetText("C0036"), Model.CommonMethod.FormatDateAgo((DateTime)Eval("DateTime")))%></b></a></td>
												<td width="47%" class="revisionlistcelleven"><small><%#(Eval("Comment").ToString().Length > 0 ? Eval("Comment").ToString() : "&nbsp;")%></small></td>
												<td width="20%" class="revisionlistcelleven"><a href='/<%#Eval("Username")%>.htm'><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a></td>
											</tr>
										</ItemTemplate>
									</asp:Repeater>
								</table>
							</asp:PlaceHolder>
							<div><%=FormatContent%></div>
							<div style="border-top:1px #eee solid; padding-top:5px"><%=Views%> <%=GetText("WK097")%></div>
							<%} %>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>